Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Trunk
-
None
-
None
Description
According to Groovy documentation the following construction:
CompilerConfiguration conf = new CompilerConfiguration(); conf.setScriptBaseClass(scriptBaseClass); groovyClassLoader = new GroovyClassLoader(GroovyUtil.class.getClassLoader(), conf);
is equivalent to running the a script containing the @BaseScript annotation.
In org.apache.ofbiz.base.util.GroovyUtil instead of choosing one solution, we are doing both.